<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Admin_Controller extends MY_Controller {
    
    public $user = '';
    
    public function __construct()
    {
        parent::__construct();
        
        // check authentication
		$this->user = $this->auth->is_logged_in('admin');
        
		// get class and function name
        $this->auth->has_permission(array($this->router->fetch_class(), $this->router->fetch_method()));
		
		// dump($this->user);
		
		$this->load->helper('date');
    }
	
	// ------------------------------------------------------------------------
    
}

/* End of file admin_controller.php */
/* Location: ./application/libraries/admin_controller.php */